clc;
clear all;
close all;

snr_1d4 = -6:0.2:-4.0;
ber_1d4 = [0.10765625 0.08805990 0.06618490 0.04255208 0.02889323 0.01394306 0.00764960 0.00368550 0.00134592 0.00054149 0.00021423];

snr_1d3 = -5:0.2:-3;
ber_1d3 = [0.12665365 0.11062500 0.07963542 0.05565104 0.03550781 0.02608073 0.01047036 0.00626969 0.00258061 0.00151734 0.00047034];



figure;
semilogy(snr_1d4, ber_1d4, 'b');
hold on;
semilogy(snr_1d3, ber_1d3, 'r');
grid on;
% title('差信道（2ms，1Hz）信道下的分集合并性能比较');
xlabel('SNR(dB)');
ylabel('BER');
legend('(192 768)' ,'(192 576)');

aa = 0;